package top.xin1901.j2ecd.dao;

import org.springframework.stereotype.Repository;
import top.xin1901.j2ecd.beans.Permission;
import top.xin1901.j2ecd.beans.dbo.PermissionDbO;

import java.util.List;

/**
 * @author HeYunjia
 */

@Repository
public interface PermissionDao {
    int insert(Permission type);

    int deleteByPrimaryKey(Long permissionId);

    int updateByPrimaryKey(Permission permission);

    List<Permission> selectAll();

    Permission selectByPrimaryKey(Long permissionId);

    List<Permission> selectByTypeId(Long TypeId);

    List<PermissionDbO> selectPermissionDbO(Long RoleId);
}
